From a8bbdd8d7ed77ca81cbfe37b49d744fdfc6f64d0 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 28 Apr 2008 17:14:33 +0000 Subject: [PATCH] Fix profiling --- includes/Parser.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/Parser.php b/includes/Parser.php index 4d2bd38231..a5162d6aa7 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1520,6 +1520,8 @@ class Parser } if( is_null( $this->mTitle ) ) { + wfProfileOut( $fname ); + wfProfileOut( $fname.'-setup' ); throw new MWException( __METHOD__.": \$this->mTitle is null\n" ); } $nottalk = !$this->mTitle->isTalkPage(); @@ -1609,6 +1611,7 @@ class Parser # should be external links. if (preg_match('/^\b(?:' . wfUrlProtocols() . ')/', $m[1])) { $s .= $prefix . '[[' . $line ; + wfProfileOut( "$fname-misc" ); continue; } -- 2.20.1